package com.opener.web.dao.sys;

import com.opener.web.model.sys.SysDict;
import com.opener.web.model.sys.SysDictSearchArgs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by baboy on 07/12/2016.
 */
@Repository
public interface SysDictDao {
    Integer add(SysDict dict);
    boolean update(SysDict dict);
    boolean addItems(List<SysDict.SysDictItem> items);
    boolean removeItems(Integer dictId);
    List<SysDict>search(SysDictSearchArgs args);
    SysDict getDictByKey(String dictKey);
}
